<?php

namespace  app\shop\controller;

use app\admin\controller\ApiCommon;

use Kingdee\Kingdee;

use think\facade\Db;

use think\response\Json;


class ReceivePayBack extends ApiCommon
{
    /**

     * 用于判断权限

     * @permission 无限制

     * @allow 登录用户可访问

     * @author SL

     * @create 2021-06-01

     */

    public function initialize()

    {



        $action = [

            'permission' => ['receive_url'],

            'allow' => ['users', 'info']

        ];

        event('CheckAuth', $action);

        $request = $this->request;

        $a       = strtolower($request->action());

        if (!in_array($a, $action['permission'])) {

            parent::initialize();

        }

    }

    /**

     * 接收支付结果

     * @return Json

     * @author SL

     * @create 2021-06-01

     */
    public function receive_url()
    {
        echo "接收返回值";
    }
}